package srcTA;

import java.util.Comparator;

public class ValueBasedBidComparer implements Comparator<Bid> 
{
    @Override
    public int compare(Bid bid1, Bid bid2) 
    {
        if (bid1.Value() == bid2.Value())
        {
            return 0;
        }
     
        //devnote: need descending order sorting, hence putting it this way
        if (bid1.Value() > bid2.Value())
        {
            return -1;
        }
        
        return +1;
    }
}
